﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace translator.Command
{
    public class OpenOptionsCommand : ICommand
    {
        MainWindow mainWindow;
        public OpenOptionsCommand(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
        }

        public event EventHandler CanExecuteChanged;

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public void Execute(object parameter)
        {
            new OptionsWindow(mainWindow);
        }
    }
}
